package com.ai.controller.made.ai_api;

import com.ai.annotation.EnterPathParamLog;
import com.ai.common.CommonResponse;

import com.ai.entity.made.LiveBO;
import com.ai.service.made.LiveService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 算法接口----直播
 */
@RestController
@RequestMapping("/algorithmAPI/live")
@Slf4j
public class LiveAPI {

    @Resource
    LiveService liveService;

    /**
     * 直播
     *
     * @return
     */
    @PostMapping("/live")
    @ApiOperation(value = "接收直播信息")
    @EnterPathParamLog
    public CommonResponse live(@RequestBody LiveBO liveBO) {
        CommonResponse resultData = liveService.live(liveBO);
//        log.info(resultData.toString());
        return resultData;
    }
}
